home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
jpl_c.zip
/
UNGETC.C
< prev
next >
Wrap
Text File
|
1988-08-06
|
768b
|
25 lines
/* 1.0 12-17-84 */
/************************************************************************
* Robert C. Tausworthe *
* Jet Propulsion Laboratory *
* Pasadena, CA 91009 1984 *
************************************************************************/
#include "defs.h"
#include "stdtyp.h"
#include "stdio.h"
/************************************************************************/
METACHAR
ungetc(c, fp) /* Push c back onto FILE fp stream, and return c.
Return EOF if c is EOF. */
/*----------------------------------------------------------------------*/
FAST FILE *fp;
{
if ((c IS EOF) OR (fp->_bptr <= fp->_buff))
return EOF;
return (*--fp->_bptr = c);
}